import org.newdawn.slick.geom.*;
/**
 * Contains data about a collision.
 * 
 * @author Gerrit Jamerson, CodeMonkeys
 * @version 4/11/13
 */
public class CollisionData
{
    private GameObject gameObject1;
    private GameObject gameObject2;
    private Vector2f hitPosition;
    
    public CollisionData(GameObject first, GameObject second)
    {
        gameObject1 = first;
        gameObject2 = second;
    } //End constructor
    
    /**
     * Returns the other game object that was in the collision.
     * 
     * @pre None
     * @param gameObject The gameObject calling this method.
     * @return The other game object.
     * @post None
     */
    public GameObject getOther(GameObject gameObject)
    {
        if(gameObject == gameObject1)
        {
            return gameObject2;
        } //End if
        
        return gameObject1;
    } //End getOther method
    
    /**
     * Returns the first game object
     */
    public GameObject getFirst()
    {
        return gameObject1;
    }
    
    /**
     * Returns the second game object
     */
    public GameObject getSecond()
    {
        return gameObject2;
    }
    
    /**
     * Returns the (estimated) position at which the two objects collided.
     * 
     * @pre None
     * @param None
     * @return The position of the collision
     * @post None
     */
    public Vector2f getCollisionPos()
    {
        return null;
    } //End getCollisionPos method
}
